@workerdeck/ui 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{SessionPanel-I5QSLLb0.mjs → SessionPanel-DVhnUwXw.mjs} +37 -2
- package/build/SessionPanel-DVhnUwXw.mjs.map +1 -0
- package/build/format-C4h4jZL_.d.mts +25 -0
- package/build/format.d.mts +2 -2
- package/build/format.mjs +2 -2
- package/build/index.d.mts +2 -2
- package/build/index.mjs +2 -2
- package/build/scoped.css +4 -0
- package/build/{status-Dm9INVTt.mjs → status-BW2xj79g.mjs} +11 -2
- package/build/status-BW2xj79g.mjs.map +1 -0
- package/build/workspace.mjs +2 -2
- package/package.json +4 -4
- package/src/components/agent/TranscriptItemView.tsx +19 -1
- package/src/components/terminal/TerminalTranscript.tsx +4 -1
- package/src/components/terminal/height.ts +6 -1
- package/src/components/terminal/items.tsx +14 -1
- package/src/lib/format.ts +10 -0
- package/build/SessionPanel-I5QSLLb0.mjs.map +0 -1
- package/build/format-C_lpFq0l.d.mts +0 -16
- package/build/status-Dm9INVTt.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as toolInputPreview, S as rateLimitWindowSeconds, a as meterTintClass, b as formatTokens, d as COMPACTION_TEXT, f as formatAgoPrecise, g as formatDuration, h as formatCountdown, m as formatCost, p as formatBytes, r as meterColorClass, v as formatRateLimitWindowLong, y as formatRelativeTime } from "./status-BW2xj79g.mjs";
|
|
2
2
|
import { Fragment, createContext, forwardRef, memo, useCallback, useContext, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { clsx } from "clsx";
|
|
@@ -5441,6 +5441,19 @@ function TurnResultRow$1({ item }) {
|
|
|
5441
5441
|
children: message
|
|
5442
5442
|
}, index))] });
|
|
5443
5443
|
}
|
|
5444
|
+
/**
|
|
5445
|
+
* One row, deliberately. A rule with a centred label reads better and costs the height book a
|
|
5446
|
+
* second measurement for a row that carries no content — and the point here is only that the
|
|
5447
|
+
* boundary is *visible*, so the ring dropping 90% → 15% stops reading as a bug.
|
|
5448
|
+
*/
|
|
5449
|
+
function CompactionRow$1() {
|
|
5450
|
+
return /* @__PURE__ */ jsx(Row, {
|
|
5451
|
+
glyph: "≡",
|
|
5452
|
+
glyphTone: "yellow",
|
|
5453
|
+
tone: "faint",
|
|
5454
|
+
children: COMPACTION_TEXT
|
|
5455
|
+
});
|
|
5456
|
+
}
|
|
5444
5457
|
function NoticeRow$1({ item }) {
|
|
5445
5458
|
const error = item.level === "error";
|
|
5446
5459
|
return /* @__PURE__ */ jsx(Row, {
|
|
@@ -8795,6 +8808,7 @@ function itemHeight(item, m) {
|
|
|
8795
8808
|
return acc;
|
|
8796
8809
|
}
|
|
8797
8810
|
case "notice": return rowH(item.text, m, { extraPx });
|
|
8811
|
+
case "compaction": return rowH(COMPACTION_TEXT, m, { extraPx });
|
|
8798
8812
|
case "file_delivered": return rowH(`${item.path} · ${formatBytes(item.bytes)}` + (item.description ? ` · ${item.description}` : ""), m, { extraPx });
|
|
8799
8813
|
default: return {
|
|
8800
8814
|
px: 0,
|
|
@@ -9730,6 +9744,7 @@ function TerminalItemView({ item, fileUrl }) {
|
|
|
9730
9744
|
case "tool_call": return /* @__PURE__ */ jsx(ToolRow, { item });
|
|
9731
9745
|
case "turn_result": return /* @__PURE__ */ jsx(TurnResultRow$1, { item });
|
|
9732
9746
|
case "notice": return /* @__PURE__ */ jsx(NoticeRow$1, { item });
|
|
9747
|
+
case "compaction": return /* @__PURE__ */ jsx(CompactionRow$1, {});
|
|
9733
9748
|
case "file_delivered": return /* @__PURE__ */ jsx(FileRow, {
|
|
9734
9749
|
item,
|
|
9735
9750
|
href: fileUrl?.(item.path)
|
|
@@ -10260,6 +10275,7 @@ function TranscriptItemView({ item, fileUrl, attachmentUrl, hostImage, terminal
|
|
|
10260
10275
|
});
|
|
10261
10276
|
case "turn_result": return /* @__PURE__ */ jsx(TurnResultRow, { item });
|
|
10262
10277
|
case "notice": return /* @__PURE__ */ jsx(NoticeRow, { item });
|
|
10278
|
+
case "compaction": return /* @__PURE__ */ jsx(CompactionRow, {});
|
|
10263
10279
|
case "file_delivered": return /* @__PURE__ */ jsx(FileCard, {
|
|
10264
10280
|
item,
|
|
10265
10281
|
href: fileUrl?.(item.path)
|
|
@@ -10267,6 +10283,25 @@ function TranscriptItemView({ item, fileUrl, attachmentUrl, hostImage, terminal
|
|
|
10267
10283
|
default: return null;
|
|
10268
10284
|
}
|
|
10269
10285
|
}
|
|
10286
|
+
/**
|
|
10287
|
+
* The cards spelling of a compaction boundary — a rule with the label through it, the same shape
|
|
10288
|
+
* `RecapRow` uses below, because both are boundaries rather than messages. The terminal spelling is
|
|
10289
|
+
* `terminal/items.tsx`'s `CompactionRow`, one grid row, and the two share `COMPACTION_TEXT`.
|
|
10290
|
+
*/
|
|
10291
|
+
function CompactionRow() {
|
|
10292
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
10293
|
+
"data-slot": "compaction",
|
|
10294
|
+
className: "flex items-center gap-2 py-1",
|
|
10295
|
+
children: [
|
|
10296
|
+
/* @__PURE__ */ jsx("div", { className: "h-px flex-1 bg-border" }),
|
|
10297
|
+
/* @__PURE__ */ jsxs("span", {
|
|
10298
|
+
className: "font-mono text-label text-fg-3",
|
|
10299
|
+
children: ["≡ ", COMPACTION_TEXT]
|
|
10300
|
+
}),
|
|
10301
|
+
/* @__PURE__ */ jsx("div", { className: "h-px flex-1 bg-border" })
|
|
10302
|
+
]
|
|
10303
|
+
});
|
|
10304
|
+
}
|
|
10270
10305
|
function RecapRow({ line, since, terminal }) {
|
|
10271
10306
|
const away = since === void 0 ? void 0 : formatRelativeTime(since);
|
|
10272
10307
|
const text = away ? `${line} · last here ${away}` : line;
|
|
@@ -11428,4 +11463,4 @@ function Notice({ level, onDismiss, children }) {
|
|
|
11428
11463
|
//#endregion
|
|
11429
11464
|
export { isMutatingTool as $, PERMISSION_MODES as A, MenuItem as At, Composer as B, Input as Bt, TerminalPermissionPrompt as C, DialogClose as Ct, SubagentStrip as D, DialogTrigger as Dt, parseUserQuestions as E, DialogRow as Et, SkillsDialog as F, SelectItem as Ft, previewPatch as G, cn as Gt, TerminalSurface as H, badgeVariants as Ht, McpDialog as I, SelectItemText as It, Ink as J, Band as K, HostFilesDialog as L, SelectTrigger as Lt, permissionModeChoices as M, MenuTrigger as Mt, permissionModeMeta as N, Select$1 as Nt, PermissionPrompt as O, Menu$1 as Ot, ModelSelect as P, SelectContent as Pt, useAffordances as Q, EntryIcon as R, SelectValue as Rt, TerminalQuestionPrompt as S, DialogBody as St, QuestionPrompt as T, DialogHeader as Tt, TerminalMarkdown as U, Button as Ut, skillPrompt as V, Badge as Vt, TerminalDiff as W, buttonVariants as Wt, CopyAction as X, Row as Y, WithActions as Z, ConversationContent as _, copyText as _t, Transcript as a, commandTrigger as at, STATUS_META as b, TooltipProvider as bt, PromptTokenText as c, usePromptAreaState as ct, FileCard as d, segmentsToPlainText as dt, toolIcon as et, TerminalItemView as f, ProgressRing as ft, Conversation as g, CopyButton as gt, Loader as h, Spinner as ht, useMinuteClock as i, useTranscriptVariant as it, PermissionModeSelect as j, MenuSeparator as jt, Response as k, MenuContent as kt, Message as l, PromptArea as lt, SessionEmptyState as m, CodeBlock as mt, UsageDialog as n, TranscriptVariantProvider as nt, ToolCallCard as o, hashtagTrigger as ot, TerminalTranscript as p, Splitter as pt, Blank as q, UsageMeters as r, useTranscriptDensity as rt, Reasoning as s, mentionTrigger as st, SessionPanel as t, TranscriptDensityProvider as tt, MessageContent as u, plainTextToSegments as ut, ConversationScrollButton as v, Tip as vt, QUESTION_BEHAVIORS as w, DialogContent as wt, SessionInfoDialog as x, Dialog$1 as xt, StatusBar as y, TooltipContent as yt, ContextDialog as z, PortalScope as zt };
|
|
11430
11465
|
|
|
11431
|
-
//# sourceMappingURL=SessionPanel-
|
|
11466
|
+
//# sourceMappingURL=SessionPanel-DVhnUwXw.mjs.map
|